<!doctype html>

<?php
	session_start();
	if(isset($_GET['logout']) && $_GET['logout'] == 1)
	{
		unset($_SESSION['login']);
		unset($_SESSION['admin']);
		unset($_SESSION['username']);
		unset($_SESSION['userid']);
		session_destroy();	
	}	
	include('./php/functions.php');
	require_once('./getid3/getid3.php');
	error_reporting(E_ALL); 
	//error_reporting(0); 
?>

<html>
	<head>
		<title>MyMusic+</title>
		<link rel="icon" href="./favicon.ico" type="image/x-icon" /> 
		<meta name="description" content="Das beste Musik Portal der Welt" content="text/html; utf-8"/>
		<meta http-equiv="X-UA-Compatible" content="IE=edge"> 
		<script src="./js/jquery-1.11.0.min.js"></script>
		<script src="./js/jquery.form.js"></script>
		<link href="CSS/main.css" type="text/css" rel="stylesheet" />
		<link href="CSS/normalize.css" type="text/css" rel="stylesheet" />
	</head>
	<body>
		<div id="page">	
<?php
			if(isset($_SESSION['login']) && $_SESSION['login'] == 1)
			{				
				include("content.php");
			}
			else
			{
				include("login.php");
			}
?>
		</div>
	</body>
</html>